<template>
    <div>首页
        <button @click="getData">验证token是否加上去了</button>
    </div>
</template>
<script>
export default {
    data(){
        return{

        }
    },
    methods: {
        getData(){
        this.$http({
          method:'post',
          url:'https://easy-mock.com/mock/5d15ee44beb3d734b9e9eca0/example/login',
          params:{
            name:'55'
          }
        }).then((data)=>{
            
        })
        }
    },

}
</script>
